package com.kx.yooli.kx.wechat.constant;

import com.kx.yooli.kx.wechat.config.propertiesconf.CustomizedPropertyConfigurer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author john_sqwen-childe.wen
 * @date 2024/4/2
 * @PROJECT_NAME wechat
 * @description create ServiceUrl by john_sqwen
 * and  value is
 */
public class ServiceUrl {
    private final Logger log = LoggerFactory.getLogger(ServiceUrl.class);
  /****************应用头地址******************/

  /**
   * url.saler.service
   */
  public final static String SALE_URL = CustomizedPropertyConfigurer.getContextProperty("url.saler.service").toString();

  public final static String LIKA_URL = CustomizedPropertyConfigurer.getContextProperty("url.lika.service").toString();

  /**
   * url.mgr.service
   */
  public final static String MGR_URL = CustomizedPropertyConfigurer.getContextProperty("url.mgr.service").toString();

  /**
   * url.apr.service
   */
  private final static String APR_URL = CustomizedPropertyConfigurer.getContextProperty("url.apr.service").toString();

  /**
   * url.file.service
   */
  private final static String FILE_URL = CustomizedPropertyConfigurer.getContextProperty("url.file.service").toString();

  /**
   * url.wechat.service
   */
  public final static String WECHAT_URL = CustomizedPropertyConfigurer.getContextProperty("url.wechat.service").toString();

  /**
   * url.wechat.base.service
   */
  public final static String WECHAT_BASE_URL = CustomizedPropertyConfigurer.getContextProperty("url.wechat.base.service").toString();


  public final static String KXWEIXINUSER_URL = CustomizedPropertyConfigurer.getContextProperty("url.kxweixinuser.service").toString();

  /**
   * url.settle.service
   */
  private final static String  SETTLE_URL = CustomizedPropertyConfigurer.getContextProperty("url.settle.service").toString();

  /**
   * url.nm.service
   */
  public static final String NM_URL =  CustomizedPropertyConfigurer.getContextProperty("url.nm.service").toString();

  /**
   * wechat push data migration
   */
  public static final String WECHAT_DATA_MIGRATION_PUSH_URL = CustomizedPropertyConfigurer.getContextProperty("wechat.data.migration.push.url").toString();
  /**
   * 华夏银行开户
   */
  public static final String HUAXIA_URL = CustomizedPropertyConfigurer.getContextProperty("url.huaxia.service").toString();
  /**
   * BI 数据分析
   */
  public static final String BI_ANALYSIS_URL = "http://bi-cl.pohoocredit.com/static/analysis/bf.gif";

  /*
   * 运营系统Url地址
   * */
  public static final String KX_OPR_PLATF_URL = CustomizedPropertyConfigurer.getContextProperty("url.kx.opr.platf.service").toString();

  /****************具体Service******************/

  /**
   * 文件上传服务url
   */
  public final static String FILE_UPLOAD_URL = FILE_URL + "servlet/Upload";

  /**
   * 文件下载服务url
   */
  public final static String FILE_DOWNLOAD_URL = FILE_URL + "servlet/Download";


  /**********MGR_SERVICES***********/

  /**
   * url.pclservice.queryRepayInfo
   */
  @Deprecated
  public final static String PCLSERVICE_QUERYREPAYINFO_URL = MGR_URL+"services/rest/queryRepayInfo/";

  /**
   * getLoanInfosByIdCard_url
   */
  public final static String GET_LOANINFOSBYIDCARD_URL = MGR_URL + "services/rest/getLoanBaseInfoByCerNo";
  /**
   * 获取注册渠道管理信息
   */
  public final static String GET_CHANNELSWITCHSTATUS_URL = MGR_URL + "services/rest/getKChannelStatus";

  /**
   * 校验进件资格
   */
  public final static String GET_CHECKDXDQUALIFICATION  = SALE_URL + "services/rest/wechatService/checkDxdQualification/";

  /**
   * queryAllGoodsType_URL
   */
  public final static String QUERY_ALL_GOODSTYPE = MGR_URL + "services/rest/queryAllGoodsType";

  /**
   * queryBrandByType_URL
   */
  public final static String QUERY_BRAND_BY_TYPE = MGR_URL + "services/rest/queryGoodsBrandByType";

  /**
   * queryMarqueByBrand_URL
   */
  public final static String QUERY_MARQUE_BY_BRAND = MGR_URL + "services/rest/queryMarqueByBrand";

  /**
   * getProdByChanSource_url
   */
  public final static String GET_PRODBYCHANSOURCE_URL = MGR_URL + "services/rest/getProdByChanSource";

  /**
   * getPeriodProdsByProdNo_url
   */
  public final static String GET_PERIODPRODSBYPRODNO_URL = MGR_URL + "services/rest/getPeriodProdsByProdNo";

  /**
   * url.salerservice.pos.queryAllSchool
   */
  public final static String MGR_QUERYALLSCHOOL_URL = MGR_URL + "services/rest/queryAllSchool";


  /**
   * url.salerservice.pos.getLoanBaseInfoByChanlCode
   */
  public final static String MGR_GETLOANBASEINFOBYCHANLCODE_URL = MGR_URL + "services/rest/getLoanBaseInfoByChanlCode";
  /**
   * url.salerservice.pos.getLoanBaseInfoByChanlCode
   */
  public final static String MGR_UPDATEDXDWHITECASHBYPHONE_URL = MGR_URL + "services/rest/updateDxdWhiteCashByPhone";
  /**
   * getLoanBaseInfoByCerNoFdd_url
   */
  public final static String MGR_GETLOANBASEINFOBYCERNOFDD_URL = MGR_URL + "services/rest/getLoanBaseInfoByCerNoFdd";
  /**
   * getShoolNameById_url
   */
  public final static String MGR_GETSCHOOLNAMEBYID_URL = MGR_URL + "services/rest/querySchoolNameById/";
  /**
   * url.mgrservice.cash.getLoanBaseInfoByLoanNo
   */
  public final static String MGR_GETLOANBASEINFOBYLOANNO = MGR_URL + "services/rest/getLoanBaseInfoByLoanNo";

  /**
   * getProdByProdNo
   */
  public final static String MGR_GETPRODBYPRODNO = MGR_URL + "services/rest/getProdByProdNo";
  /**
   * getBatchLoanStatusByLoanNos
   */
  public final static String MGR_GETBATCHLOANSTATUSBYLOANNOS = MGR_URL + "services/cash/getBatchLoanStatusByLoanNos";

  public final static String MGR_GET_SA_TEST_INFO_URL = MGR_URL + "services/rest/getTestSaInfo";
  /**
   * 获取K贷渠道信息列表
   */
  public final static String GET_KCHANNEL_INFO_URL = MGR_URL + "services/rest/getKChannelInfoList";


  /*************APR_SERVICES****************/

  /**
   * url.wechatGenerateContract
   */
  public final static String WECHATGENERATECONTRACT_URL = APR_URL + "services/weChatCreditGuideline/wechatGetCreditAmt";


  /*************SALER_SERVICES****************/

  /**
   *sale.webservice.url
   */
  public final static String WEBSERVICE_URL = SALE_URL + "services/LoanApplyWebService?wsdl";

  /**
   * url.salerservice.getMarLoanInfoUrl
   */
  public final static String SALER_GETMARLOANINFO_URL = SALE_URL + "services/rest/wechatService/getLoanInfo/";

  /**
   * url.salerservice.pos.saveZcPosLoan
   */
  public final static String SALER_SAVEZCPOSLOAN_URL = SALE_URL + "services/rest/wechatService/saveZcPosLoan/";

  /**
   * url.salerservice.pos.getLibrarysInfo
   */
  public final static String SALER_GETLIBRARYSINFO_URL = SALE_URL + "services/rest/wechatService/getLibrarysInfo/";

  /**
   *  url.salerservice.getEleNewLoanUrl
   */
  public final static String SALER_GETELENEWLOAN_URL = SALE_URL + "services/rest/wechatService/getEleNewLoanUrl/";

  /**
   *  url.salerservice.getGysdAgreeAuth
   */
  public final static String SALER_GETGYSDLOAN_AUTH = SALE_URL + "services/rest/wechatService/getGysdAgreeAuth/";
  public final static String SALER_GETGYSDLOAN_URL = SALE_URL + "services/rest/wechatService/handleGetEleGysdAuthUrl/";

  /**
   * url.salerservice.pos.deleteLoanAttach
   */
  public final static String SALER_DELETELOANATTACH_URL = SALE_URL + "services/rest/wechatService/deleteLoanAttach/";

  /**
   * url.salerservice.pos.saveLoanAttach
   */
  public final static String SALER_SAVELOANATTACH_URL = SALE_URL + "services/rest/wechatService/saveLoanAttach/";

  /**
   * url.salerservice.getFddViewDocsUrl
   */
  public final static String SALER_GETFDDVIEWDOCSURL_URL = SALE_URL + "services/rest/wechatService/getEleLoanUrl/";


  /**
   * url.salerservice.getEleNewLoanUrl
   */
  public final static String SALER_GETELENEWLOANURL_URL = SALE_URL + "services/rest/wechatService/getEleNewLoanUrl/";


  /**
   * url.salerservice.setUserSubmitFlag
   */
  public final static String SET_USER_SUBMIT_FLAG_URL = SALE_URL + "services/rest/wechatService/setUserSubmitFlag/";

  /**
   * url.salerservice.pos.getModifyScopeInfo
   */
  public final static String SALER_GETMODIFYSCOPEINFO_URL = SALE_URL + "services/rest/wechatService/getModifyScopeInfo/";
  /**
   * url.salerservice.pos.queryfoundSignStatus
   */
  public final static String SALER_QUERYFOUNDSIGNSTATUS_URL = SALE_URL + "services/rest/wechatService/handleUnderWritingSignUrl/";
  /**
   * url.salerservice.pos.zaFundChannelInsureDeal
   */
  public final static String SALER_ZAFUNDCHANNELINSUREDEAL_URL = SALE_URL + "services/rest/wechatService/zaFundChannelInsureDeal/";

  public final static String SALER_ZATOYOOLI_URL = SALE_URL + "services/rest/wechatService/zaToYooli/";


  /**
   * url.salerservice.pos.updatePosLoan
   */
  public final static String SALER_UPDATEPOSLOAN_URL = SALE_URL + "services/rest/wechatService/modifyLoan/";
  /**
   * url.salerservice.pos.zaBankModify
   */
  public final static String SALER_ZA_BANK_MODIFY_URL= SALE_URL + "services/rest/wechatService/zaBankModify/";
  /**
   * url.salerservice.pos.saveZcLoan
   */
  public final static String SALER_SAVEZCLOAN_URL = SALE_URL + "services/rest/wechatService/saveZcLoan/";
  /**
   * url.salerservice.pos.operateLoan
   */
  public final static String SALER_OPERATELOAN_URL = SALE_URL + "services/rest/wechatService/operateLoan/";
  /**
   * getRepayLoanByLoanNo
   */
  public final static String SALER_GETREPAYLOANBYLOANNO_URL = SALE_URL + "services/rest/wechatService/getRepayLoanByLoanNo/";
  /**
   * checkLoanSignStatus
   */
  public final static String SALER_CHECKLOANSIGNSTATUS_URL = SALE_URL + "services/rest/wechatService/checkLoanSignStatus/";
  /**
   * checkNmThirdApplyAuth
   */
  public final static String SALER_CHECKNMTHIRDAPPLYAUTH_URL = SALE_URL + "services/rest/third/checkNmThirdApplyAuth/";


  /**
   * checkNmThirdApplyAuth
   */
  public final static String RONG_QUALIFICATION_CHECK = SALE_URL + "services/rest/third/qualificationCheck/";

  /*************WECHAT_SERVICES****************/
  /**
   *modifyScope
   */
  public final static String MODIFYSCOPE_URL = WECHAT_URL + "app/wechatPosLoan/toModifyScopePage?loanNo=LOANNO";
  /**
   *modifyScope
   */
  public final static String MODIFYSCOPE_P003_URL = WECHAT_URL + "app/lemonbeaty/toModifyScopePage?loanNo=LOANNO";
  /**
   *modifyScope
   */
  public final static String MODIFYSCOPE_R_URL = WECHAT_URL + "app/reservation/toModifyScopePage?loanNo=LOANNO";
  /**
   *myApplyUrl
   */
  public final static String MYAPPLY_URL = WECHAT_URL + "app/wechatPosLoan/myApplyInfo?p=f_apply_apply%26rt=loan_menu";
  /**
   *receiveCouponUrl
   */
  public final static String RECEIVECOUPON_URL= WECHAT_URL+"app/welfare/coupon?p=f_apply_apply%26rt=loan_menu";
  /**
   *myApplyUrl
   */
  public final static String YM_JY_APPLY_URL = WECHAT_URL + "app/lemonbeaty/lemonapply?rt=education_menu";

  /**
   * identifyChooseUrl
   */
  public final static String IDENTIFYCHOOSE_URL = WECHAT_URL + "app/weixinApply/identityChoose?p=bt_kl_apply_o01%26rt=newkld_menu";


  /**
   * bindUrl
   */
  public final static String BIND_URL =  WECHAT_URL + "app/wechatValidate/authentication";


  /**
   * applyUrl
   */
  public final static String APPLY_URL = WECHAT_URL + "app/wechatValidate/kxwechatapply/";

  /**
   * marInfoUrl
   */
  public final static String MARINFO_URL = WECHAT_URL + "app/wechatPosLoan/goodsLoanInfo?loanNo=LOANNO%26isWrite=true";

  /**
   * ymPersonUrl
   */
  public final static String YMPERSON_URL = WECHAT_URL + "app/lemonbeaty/perInfoInput?loanNo=LOANNO%26isWrite=true";

  /**
   * cashLoanUrl
   */
  public final static String CASHLOAN_URL = WECHAT_URL + "app/wechatCashLoan/perInfoInput?loanNo=LOANNO%26isWrite=true";


  /**
   * reservationUrl
   */
  public final static String RESERVATION_URL = WECHAT_URL + "app/reservation/perInfoInput?loanNo=LOANNO%26isWrite=true";

  /**
   *merloanUrl
   */
  public final static String MERLOAN_URL = WECHAT_URL + "app/merloan/perInfoInput?loanNo=LOANNO%26isWrite=true";
  /**
   *Lemo goodsLoanInfoUrl
   */
  public final static String LEMOGOODSLOAN_URL = WECHAT_URL + "app/lemonbeaty/goodsLoanInfo?loanNo=LOANNO%26isWrite=true";


  /**
   * authorizationUrl
   */
  public final static String AUTHORIZATION_URL = WECHAT_URL + "app/commonLoan/toAuthorization?chalCode=CHALCODE%26loanNo=LOANNO";
  /**
   * drainsUrl
   */
  public final static String DRAINS_URL = WECHAT_URL + "app/dranis/invitFriends/";

  /**
   * drainsActivityUrl
   */
  public final static String DRAINSACTIVITY_URL = WECHAT_URL + "app/dranis/toDrainsActivity/";

  /**
   * currentBillUrl
   */
  public final static String CURRENTBILL_URL = WECHAT_URL + "app/payBack/getCurrentBill";

  /**
   * 主动还款
   */
  public final static String REPAYMENT_URL = WECHAT_BASE_URL + "payback/amountList";

  /***
   * accountCenterUrl
   */
  public final static String ACCOUNT_CENTER_URL = WECHAT_URL + "app/webchatAccountCenter/centerIndex";

  /***
   * savaZhimaCreditScoreUrl
   */
  public final static String SAVA_ZHIMA_CREDIT_SCORE_URL = WECHAT_URL + "app/webchatAccountCenter/doSaveZhimaCreditScore";


  public final static String SAVA_ZHIMA_URL = WECHAT_URL + "app/webchatAccountCenter/saveZhimaCreditScore?type=TYPE&loanNo=LOANNO";
  /***
   * identifySuccessUrl
   */
  public final static String IDENTIFY_SUCCESS_URL = WECHAT_URL + "app/webchatAccountCenter/identifySuccess";
  /***
   * identifyFailUrl
   */
  public final static String IDENTIFY_FAIL_URL = WECHAT_URL + "app/webchatAccountCenter/identifyFail";

  /***
   * identifyErrorUrl
   */
  public final static String IDENTIFY_ERROR_URL = WECHAT_URL + "app/webchatAccountCenter/identifyError";

  /**
   * share.qrcode.url
   */
  public final static String SHAREQRCODE_URL = WECHAT_URL + "app/dranis/toShowFriends?qrcodeParam=IDCARD";

  /**
   * connect.url
   */
  public final static String CONNECT_URL = WECHAT_URL;

  /**
   * query credit url 征信查询url
   */
  public final static String QUERY_CREDIT_URL = WECHAT_URL + "app/commonLoan/toQueryCredit";

  /*************SETTLE_SERVICES****************/

  /**
   * webservice.finalpay.url
   */
  public final static String WEBSERVICE_FINALPAY_URL = SETTLE_URL + "services/CeFinalPaymentWS?wsdl";

  /**
   * webservice.verify.url
   */
  public final static String WEBSERVICE_VERIFY_URL = SETTLE_URL + "services/CeVerifyWS?wsdl";

  /**********NM_SERVICES***********/

  /**
   * signContract
   */
  public final static String NM_SIGNCONTRACT_URL = NM_URL + "signContract";
  /**
   * signContractResult
   */
  public final static String NM_SIGNCONTRACTRESULT_URL = NM_URL + "signContractResult";
  /**
   * approveResult
   */
  public final static String NM_APPROVERESULT_URL = NM_URL + "approveResult";
  /**
   * makeLoansResult
   */
  public final static String NM_MAKELOANSRESULT_URL = NM_URL + "makeLoansResult";
  /**
   * signContractRedirectURL
   */
  public final static String NM_SIGNCONTRACTREDIRECT_URL = NM_URL + "signContractRedirectURL";

  /**
   * k利贷前端路径
   */
  public final static String CASH_AUTONOMOUS_FRONT_URL =  CustomizedPropertyConfigurer.getContextProperty("url.cash.autonomous.front").toString();

  /**
   * url.salerservice.pos.SALER_GETCONTRACTINFO_URL
   */
  public final static String SALER_GETCONTRACTINFO_URL = SALE_URL + "services/rest/wechatService/getContractInfo/";

  /**
   * url.salerservice.pos.getSysCodeInfoList
   */
  public final static String SALER_GETSYSCODEINFOLIST_URL = SALE_URL + "services/rest/wechatService/getSysCodeInfoList/";

  /**
   * url.salerservice.pos.getLoanInfoByLoanType
   */
  public final static String SALER_GETLOANINFOBYLOANTYPE_URL = SALE_URL + "services/rest/wechatService/getLoanInfoByLoanType/";

  /**
   * url.salerservice.pos.autoSignContract
   */
  public final static String SALER_AUTOSIGNCONTRACT_URL = SALE_URL + "services/rest/wechatService/autoSignContract/";

  /**
   * url.salerservice.pos.modifyWithdrawalStatus
   */
  public final static String SALER_MODIFYWITHDRAWALSTATUS_URL = SALE_URL + "services/rest/wechatService/modifyWithdrawalStatus/";
  /**
   * url.salerservice.pos.modifyEstablishAccountStatus
   */
  public final static String SALER_MODIFYESTABLISHACCOUNTSTATUS_URL = SALE_URL + "services/rest/wechatService/modifyLoanBaseInfoAccount/";
  /**
   * url.huaxia.service.establishccount 华夏银行开户接口
   */
  public final static String HUAXIA_ESTABLISHACCOUNT_URL = HUAXIA_URL + "/third/huaxia/registered/extract";
  /**
   * url.huaxia.service.establishAccountCallback  华夏银行开户回调接口
   * */
  public final  static String CALLBACK_URL = WECHAT_URL + "/app/wechatPosLoan/myApplyInfo?p=f_apply_apply%26rt=loan_menu&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect";
  /*
   * 快信运营系统微信群发消息转发
   * */
  public final static String KX_OPR_PLATF_MESSAGE_FORWARD_URL = KX_OPR_PLATF_URL +"/kx-opr-platf/cloud/wechat/message/notify";
}
